package com.aw.manual.ejemplo011;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * User: gmc
 * Date: 01/06/2010
 */
@Component
public class Ventana implements InitializingBean, DisposableBean{
    public void afterPropertiesSet() throws Exception {
        System.out.println("Inicializando:"+this);
    }

    public void destroy() throws Exception {
        System.out.println("Finalizando:"+this);
    }
}
